package org.zhenggn.designpattern.chain.exam;

/**
 * Created by zhenggn on 2017/10/7.
 */
public class Client {

    public static void main(String[] args) {
        Handler h1= new H1();
        Handler h2 = new H2();
        Handler h3 = new H3();

        h1.setSuccessor(h2);
        h2.setSuccessor(h3);

        h1.handleRequest();
    }

}
